<?php

namespace App\Http\Presenters;

use Laracasts\Presenter\Presenter;

class QuestionPresenter extends Presenter
{

    public function qSingle()
    {
        switch ($this->single) {
            case 0:
                return '<span class="orange smaller-80"> 多</span>';
                break;
            case 1:
                return '<span class="light-green smaller-80"> 单</span>';
                break;
            default:
                break;
        }
    }

    public function qType()
    {
        switch ($this->type) {
            case 2:
                return '<span class="red smaller-80">填</span>';
                break;
            case 1:
                return '<span class="green smaller-80">选</span>';
                break;
            default:
                break;
        }
    }

}
